asMap

abstract fun asMap(): Map<String, String>

Returns an immutable map that contains attributes of the element.

Each map entry is a pair of strings where key stands for the attribute name and value stands for the attribute value.

The returned map is empty if the element does not have attributes.

Throws

when the element is closed